﻿using System.ComponentModel.DataAnnotations;

namespace HandlerContextOptions
{
    public class UserLoginRequset
    {
        [Required(ErrorMessage = "登录用户名不能为空")]
        public string Name { get; set; }

        [Required]
        [MinLength(9), MaxLength(14)]
        public string Pwd { get; set; }
    }

    public class UserLoginResult : ResultBasics
    {
        public int UserKey { get; set; }
        public string UserName { get; set; }
        public string UserFace { get; set; }

        public int RoleKey { get; set; }
        public string RoleName { get; set; }
    }
}
